package com.softvan.web.listener;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;

import lombok.extern.slf4j.Slf4j;

@WebListener
@Slf4j
public class DemoServletContextListener implements ServletContextListener {

	@Override
    public void contextInitialized(ServletContextEvent sce) {
		log.info("ServletContex初始化");
		log.info(sce.getServletContext().getServerInfo());
    }

    @Override
    public void contextDestroyed(ServletContextEvent sce) {
    	log.info("ServletContex销毁");
    }

}
